from django.shortcuts import render
from  django.http import HttpResponse
from django.views import View


def index(request):
    print('显示首页')

# Create your views here.
    context = {
        'name': '郭可颖',
        'sex': '女'
    }
    return render(request, 'index.html', context)

class RegisterView(View):

    def get(self, request):

        return render(request, 'register.html')

    def post(self, request):

        return HttpResponse('注册成功')